<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/5/16
  Time: 10:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<!-- JSTL 核心标签库 -->
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>首页</title>
</head>
<body>
<div>
    <h5>服务器：${pageContext.request.localPort}</h5>
    <h5>SessionId: ${pageContext.session.id}</h5>
</div>
<div style="width: 1000px;margin: 0 auto;">
    <h3>您好： ${username}， 欢迎来到简历管理系统，这里可以对简历进行增删改查</h3>
    <h3>
        <div style="width: 100%; text-align: right">
            <a href="${pageContext.servletContext}/resume/add">新增</a>
        </div>
    </h3>
    <table border="1" style="width: 100%">
        <tr>
            <td>ID</td>
            <td>姓名</td>
            <td>居住住址</td>
            <td>联系电话</td>
            <td>操作</td>
        </tr>
        <c:forEach var="resume" items="${resumes}">
            <tr>
                <td>${resume.id}</td>
                <td>${resume.name}</td>
                <td>${resume.address}</td>
                <td>${resume.phone}</td>
                <td>
                    <a href="${pageContext.servletContext}/resume/edit/${resume.id}">修改</a>

                    <a href="${pageContext.servletContext}/resume/delete/${resume.id}">删除</a>
                </td>
            </tr>
        </c:forEach>
    </table>
</div>
</body>
</html>
